package com.weijianhuawen.wjblog.admin.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description: 评论发布事件
 * @date: 2024-12-09 22:32
 */

@Getter
public class PublishCommentEvent extends ApplicationEvent {
    // 评论id
    private Long commentId;
    // 用户id
    private Long userId;

    public PublishCommentEvent(Object source, Long commentId, Long userId) {
        super(source);
        this.commentId = commentId;
        this.userId = userId;
    }
}
